package com.apes.fico.finance.respository;

import com.apes.fico.finance.model.statements.IncomeStatement;
import com.apes.framework.jpa.repository.CustomRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;
import java.util.Map;

public interface IncomeStatementRepository extends CustomRepository<IncomeStatement, String> {
    @Query("select new map(T.id as id,T.project as project,T.instantEquation as instantEquation,T.currentYearEquation as currentYearEquation) from IncomeStatement T where 1=1")
    List<Map<String, String>> findAllByIncomeStatement();
}
